Migrate dependency management from pip/venv to uv - #107
Merged
Conversation
- Add committed uv.lock (63 packages resolved) - README.md: add uv requirement, replace venv/pip install with uv sync - docs/development.md: rewrite Environment section, uv run for all commands - AGENTS.md: uv run commands, updated PR-workflow and Notes prose - .github/workflows/ci.yml: setup-uv action, uv sync, uv run for tool steps Closes #106
CI failed resolving 'astral-sh/setup-uv@v8' — the action publishes only exact release tags (e.g. v8.2.0), not a moving major tag. Pin to v8.2.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Switches Vesper's dependency management and command workflow from pip/venv to uv, generating a committed
uv.lockand updating all documentation and CI to use uv commands. No change to runtime behavior or dependencies.Closes #106.
Motivation
uv.lockpins exact versions for all contributors, which pip-based editable installs do not guarantee.uv) handles environment creation, locking, syncing, and command execution.Changes
uvadded to Requirements with install pointer; venv/pip install block replaced withuv sync --extra dev.uv syncanduv run; all.venv/bin/python -minvocations replaced withuv runequivalents; stale venv prose rewritten..venv/bin/pythoncommands replaced withuv run; surrounding prose, PR-workflow line, and Notes section updated.pip install -e "..[dev]"withastral-sh/setup-uv@v8+uv python install 3.12+uv sync --extra dev; ruff/mypy/pytest now run viauv runso CI honorsuv.lock.Test commands run
Repo-wide grep confirms no stale
pip install/venv/.venv/bin/references remain (except the expected.gitignoreheading that still ignores.venv/).Notes
[project.optional-dependencies] dev(installed viauv sync --extra dev); converting to PEP 735 dependency groups is optional future polish.